package logic;

import database.DatabaseConnector;
import database.ModelClass;

//		Handles deposit function
public class Deposit {
	DatabaseConnector dbConnector;
	ModelClass mc;
	String confirm;
	
	public Deposit(double transferAmount, String Email, double currentBalance,
			String userId) {
		dbConnector = new DatabaseConnector();

		System.out.println("THIS IS CURRENT BALANCE: " + currentBalance);
		System.out.println("THIS IS TRANSFER AMOUNT: " + transferAmount);

		double typedAmount = transferAmount;
		dbConnector.updateBitcoinBalance(currentBalance + typedAmount, userId);

		confirm = new String("confirmed");

	}

	public String getIfConfirmed() {
		return confirm;
	}
}